package com.cancan.cloud.shop.service.impl;

import com.cancan.cloud.shop.domain.Product;
import com.cancan.cloud.shop.service.IProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @program: cancan-java-share
 * @description:
 * @author: czchen
 * @date: 2023-02-01 15:19:39
 */
@Service
public class ProductServiceImpl implements IProductService {
    @Override
    public Product get(Long id) {
        Product product = new Product();
        product.setId(100L);
        product.setPrice(new BigDecimal("999999.9999"));
        product.setName("黄金");
        product.setStock(100);
        return product;
    }
}
